//
//  SQCategoriesXXTableViewCell.m
//  pai
//
//  Created by pro on 14-10-30.
//  Copyright (c) 2014年 linjunjing. All rights reserved.
//

#import "SQCategoriesXXTableViewCell.h"
#import "UIImageView+WebCache.h"

@implementation SQCategoriesXXTableViewCell

- (void)awakeFromNib
{
    // Initialization code
}

-(void)setDictionary:(NSDictionary *)dic
{
    //图片链接
    NSString* imageurl = [dic objectForKey:@"imageurl"];
    //名称
    NSString* name = [dic objectForKey:@"name"];
    //内容
    NSString* content = [dic objectForKey:@"content"];
    //时间
    NSString* time = [dic objectForKey:@"time"];
    
    [self.image  setImageWithURL:[NSURL URLWithString:imageurl] placeholderImage:[UIImage imageNamed:@"placeholder.png"]];
    
    [self.nameLabel setText:name];
    
    [self.contentLabel setText:content];
    
    [self.timeLabel setText:time];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
